<?php

require_once 'PipesImpl/FileSystem/Directory.php';
class Pipes_FileSystem_Directory implements PipesImpl_FileSystem_Directory
{
	private $_path = '';
	
	public function __construct($path) {
		$this->_path = realpath($path);
	}
	
	public function exists() {
		return file_exists($this->_path) && is_dir($this->_path);
	}
	
	public function toString() {
		return $this->_path;
	}
}